<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>
<%@include file="/javascript/pickList.jsp"%>

<h1 class="layout">Reassign Responsibility</h1>

<html:errors/>

<html:form action="reassignResponsibility.do?method=reassignResponsibility" enctype="multipart/form-data" method="post">
    <table class="layout">
        <tr>
            <th class="layout">Responsible:</th>
            <td class="layout">
                <table>
                    <tr>
                        <td>
                            <html:select multiple="true" size="5" name="reassignResponsibilityActionForm" property="allResponsibleContactableIds" style="width:200">
                                <html:options collection="allContactablePairs" property="integer" labelProperty="string"/>
                            </html:select>
                        </td>
                        <td align="center" valign="middle">
                            <input type="button" onclick="remove(this.form.allResponsibleContactableIds,this.form.responsibleContactableIds)" value="<<" id=button3 name=button3>
                            <input type="button" onclick="add(this.form.allResponsibleContactableIds,this.form.responsibleContactableIds)" value=">>" id=button4 name=button4>
                        </td>
                        <td>
                            <html:select multiple="true" size="5" name="reassignResponsibilityActionForm" property="responsibleContactableIds" style="width:200">
                                <html:options collection="responsibleContactablePairs" property="integer" labelProperty="string"/>
                            </html:select>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <th class="layout">Message:</th>
            <td class="layout"><html:textarea name="nodeValue" property="message" value='' cols="60" rows="10"/></td>
        </tr>
        <tr>
            <th class="layout">Attachment</th>
            <td class="layout"><html:file property="file" size="60"/></td>
        </tr>
    </table>
    <div class="buttons">
        <html:submit property="btnSubmit" value="OK" onclick="selectAll(document.reassignResponsibilityValueActionForm.responsibleContactableIds);"/>
        <html:cancel property="btnSubmit" value="Cancel"/>
    </div>
</html:form>
